Hello, So I am trying to use the analysis wizard to produce a layout dxl attribute to show parent ID's(outgoing links). I would like to show a subset of all the parent specifications in this attribute. The one I show below is the analysis wizard for one parent module. can I add other modules to this code? I woul like to add four more to this one. The other issue with this is that i am limited in my database such that we only use one link module for all specifications (there are two programs). This is the limitation we must deal with regaridng our extended add-on scripts. here's the code: // DXL generated by DOORS traceability wizard on 19 April 2012. // Wizard version 2.0, DOORS version 9.3.0.2 pragma runLim, 0 string limitModules[1] = {"39c64e6f58693b99-000144c2"} void showOut(Object o, int depth) { Link l LinkRef lr ModName_ otherMod = null Module linkMod = null ModuleVersion otherVersion = null Object othero string disp = null string s = null string plain, plainDisp int plainTextLen int count bool doneOne = false string linkModName = "*" for l in all(o->linkModName) do { otherVersion = targetVersion l otherMod = module(otherVersion) if (null otherMod || isDeleted otherMod) continue if (!equal(getItem otherMod, (itemFromID limitModulesdepth-1))) continue othero = target l if (null othero) { load(otherVersion,false) } othero = target l if (null othero) continue if (isDeleted othero) continue doneOne = true if (depth == 1) { s = probeRichAttr_(othero,"PUID", false) if (s == "") displayRich("\\pard " " ") else displayRich("\\pard " s) } } } showOut(obj,1) Thanks you , John btela2000 - Thu Apr 19 14:15:19 EDT 2012 |
Re: Show a select number of parent module trace information // DXL generated by DOORS traceability wizard on 19 April 2012. // Wizard version 2.0, DOORS version 9.3.0.2 pragma runLim, 0 void showOut(Object o, int depth) { Link l LinkRef lr ModName_ otherMod = null Module linkMod = null ModuleVersion otherVersion = null Object othero string disp = null string s = null string plain, plainDisp int plainTextLen int count bool doneOne = false string linkModName = "*" for l in all(o->linkModName) do { otherVersion = targetVersion l otherMod = module(otherVersion) if (null otherMod || isDeleted otherMod) continue othero = target l if (null othero) { load(otherVersion,false) } othero = target l if (null othero) continue if (isDeleted othero) continue doneOne = true if (depth == 1) { s = probeRichAttr_(othero,"Absolute Number", false) if (s == "") displayRich("\\pard " " ") else displayRich("\\pard " s) } } } showOut(obj,1) |